Command Reference

All of the SNiFF+ commands that are important when editing source code are also available in Vim. To accomplish this, a new Vim command has been added to communicate with SNiFF+:

:sniff request [symbol]
For ease of use, key mappings (shortcuts) are predefined. These allow fast queries without typing long command names. Shortcut commands always act on the symbol under the current cursor position.
The key mappings are defined in:
$SNIFF_DIR/configi/sniff.vim
The following commands are available:

Vim Command | Description | Shortcut
:sniff connect | Establishes connection with SNiFF+. Make sure that SNiFF+ is in Vim mode. | sc
:sniff disconnect | Disconnects from SNiFF+. You can reconnect at any time with :sniff connect. | sq
:sniff toggle | Toggles between the implementation and definition of the symbol. | st
:sniff superclass | If the symbol is a class, and the class has at least one superclass, Vim is positioned to the declaration of the superclass. If the class has more than one superclass, a Choose Symbol dialog appears, offering all possible choices. | ss
:sniff overridden | If the cursor is positioned inside a method, Vim positions to the overridden method if it exists. | so
:sniff retrieve-file | Searches for a string in the current file using the Retriever. | srf
:sniff retrieve-project | Searches for a string in the current project using the Retriever. | srp
:sniff retrieve-all- projects | Searches for a string in all projects using the Retriever. | srP
:sniff retrieve-next | Searches for a string using the current Retriever settings. | sR
:sniff goto-symbol | Vim goes to the declaration or implementation of the symbol. If more than one symbol match, a Choose Symbol dialog opens offering all possible choices. | sg
:sniff find-symbol | Loads the symbol into a Symbol Browser. | sf
:sniff browse-class | Loads the class - its interface and hierarchy - into a Class Browser. | sb
:sniff hierarchy | Loads the class under the cursor into a Hierarchy Browser and positions to the class in the full hierarchy. | sh
:sniff restr_hier | Loads the class into a Hierarchy Browser and shows only related classes. | sH
:sniff xref-to | Opens a Cross Referencer and starts a refers-to query on the symbol. If more than one symbol match, a Choose Symbol dialog appears. | sxt
:sniff xref-by | Opens a Cross Referencer and starts a refers-by query on the symbol. If more than one symbol match, a Choose Symbol dialog is opened. | sxb
:sniff xref-has | Opens a Cross Referencer and starts a query for showing all classes and structures that are components of the symbol. The symbol must be a class or structure. If more than one symbol match, a Choose Symbol dialog is opened. | sxh
:sniff xref-used-by | Opens a Cross Referencer and starts a query for showing all symbols that have the current symbol as a component. The symbol must be a valid type. If more than one symbol match, a Choose Symbol dialog is opened. | sxu
:sniff show-docu | Loads the documentation of the symbol into a Documentation Editor. | sd
:sniff gen-docu | Opens the Documentation Synchronization dialog. | sD